package cn.eu.system.controller;

import cn.eu.common.query.annotation.Join;
import cn.eu.common.query.annotation.Query;
import cn.eu.common.query.annotation.QueryJoin;
import cn.eu.common.query.annotation.Table;
import cn.eu.system.domain.SysDept;
import cn.eu.system.domain.SysUser;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter

@QueryJoin(
    main = @Table(target = SysUser.class, thisField = SysUser.Fields.deptId, logicDelete = false),
    join = @Join(joinTable = @Table(target = SysDept.class))
)
public class TestCriteria {

    @Query
    private String username;
}
